package com.finalhomework.dms.dao;

import com.finalhomework.dms.entities.Admin;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminRepository extends CrudRepository<Admin,Integer> {
    public List<Admin> findAll();

    public Admin getAdminByUid(Integer uid);

    public void deleteAdminByUid(Integer uid);
}
